package net.sunofbeach.blog.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sunofbeach.blog.pojo.Comment;
import net.sunofbeach.blog.response.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Bing
 * @since 2021-11-24
 */
public interface CommentService extends IService<Comment> {

    /**
     * 根据文章ID查询评论列表
     * @param pageParam
     * @param articleId
     * @return
     */
    IPage<Comment> selectPage(Page<Comment> pageParam, String articleId);

    /**
     * 根据评论ID删除评论
     * @param commentId
     * @return
     */
    Result removeByCommentId(String commentId);
}
